import 'package:bookshelf/generated/json/base/json_convert_content.dart';
import 'package:bookshelf/entity/rfid_entity.dart';

RfidEntity $RfidEntityFromJson(Map<String, dynamic> json) {
	final RfidEntity rfidEntity = RfidEntity();
	final String? no = jsonConvert.convert<String>(json['no']);
	if (no != null) {
		rfidEntity.no = no;
	}
	final String? title = jsonConvert.convert<String>(json['title']);
	if (title != null) {
		rfidEntity.title = title;
	}
	final String? rfid = jsonConvert.convert<String>(json['rfid']);
	if (rfid != null) {
		rfidEntity.rfid = rfid;
	}
	final String? currPlace = jsonConvert.convert<String>(json['curr_place']);
	if (currPlace != null) {
		rfidEntity.currPlace = currPlace;
	}
	final String? initPlace = jsonConvert.convert<String>(json['init_place']);
	if (initPlace != null) {
		rfidEntity.initPlace = initPlace;
	}
	return rfidEntity;
}

Map<String, dynamic> $RfidEntityToJson(RfidEntity entity) {
	final Map<String, dynamic> data = <String, dynamic>{};
	data['no'] = entity.no;
	data['title'] = entity.title;
	data['rfid'] = entity.rfid;
	data['curr_place'] = entity.currPlace;
	data['init_place'] = entity.initPlace;
	return data;
}